class CreateBranchOffices < ActiveRecord::Migration
  def self.up
    create_table :branch_offices do |t|
      t.references :company
      t.string :name
      t.string :city

      t.timestamps
    end
    add_index :branch_offices, [:company_id]
  end

  def self.down
    drop_table :branch_offices
  end
end
